﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
	xmlns:local="clr-namespace:intelliSys.Management.Automation.Test" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
	x:Class="intelliSys.Management.Automation.Test.TestPaper"
	x:Name="Window"
    xmlns:system="clr-namespace:System;assembly=mscorlib"
	Title="试卷管理-控制面板"
	Width="900" Height="700" WindowStyle="None" Background="{x:Null}" Foreground="{x:Null}" AllowsTransparency="True" ResizeMode="CanResizeWithGrip" MinWidth="900" MinHeight="700" FontFamily="Segoe UI Light" WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <Storyboard x:Key="Expand" >
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" >
                <EasingDoubleKeyFrame KeyTime="0" Value="40"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="46">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseInOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Shrink">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" >
                <EasingDoubleKeyFrame KeyTime="0" Value="250"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="40">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseInOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="darken">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="darkener">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.8"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <ContextMenu x:Key="MPDHistory" Background="{x:Null}">
            <MenuItem Name="menuitemDelele" Header="删除" Background="{x:Null}"  IsCheckable="False"  Foreground="White"  Click="menuitemDelele_Click" ></MenuItem>
        </ContextMenu>
        

    </Window.Resources>
    <Border CornerRadius="10" Margin="0" BorderThickness="0,1,1,1" Background="#F20E1620">
        <Border.BorderBrush>
            <LinearGradientBrush EndPoint="1.268,1.284" StartPoint="0.71,0.684">
                <GradientStop Color="#FD000000"/>
                <GradientStop Color="White" Offset="0.548"/>
            </LinearGradientBrush>
        </Border.BorderBrush>


        <Grid>


            <Grid x:Name="LayoutRoot" Margin="0">

                <Rectangle x:Name="rectangle" Margin="-397.879,-119.518,-174.825,291.214" RenderTransformOrigin="0.5,0.5">
                    <Rectangle.Fill>
                        <LinearGradientBrush EndPoint="0.989,0.767" StartPoint="0.279,0.191">
                            <GradientStop Color="#00000000" Offset="0.63"/>
                            <GradientStop Color="#33FFFFFF"/>
                        </LinearGradientBrush>
                    </Rectangle.Fill>
                    <Rectangle.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform Angle="132.554"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Rectangle.RenderTransform>
                </Rectangle>

                <ed:RegularPolygon InnerRadius="1" PointCount="3" Stretch="Fill" RenderTransformOrigin="0.5,0.5" Margin="0,123.51,8.169,-0.947" Opacity="0.99" HorizontalAlignment="Right" Width="186.861">
                    <ed:RegularPolygon.Fill>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#33000000"/>
                            <GradientStop Color="#19FFFFFF" Offset="1"/>
                        </LinearGradientBrush>
                    </ed:RegularPolygon.Fill>
                    <ed:RegularPolygon.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleY="1" ScaleX="-1"/>
                            <SkewTransform AngleY="0" AngleX="-14"/>
                            <RotateTransform Angle="-359.851"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </ed:RegularPolygon.RenderTransform>
                </ed:RegularPolygon>

                <Border BorderThickness="1,1,0,0" HorizontalAlignment="Left" Height="93.167" VerticalAlignment="Top" Width="213" CornerRadius="10,0,0,0">
                    <Border.Background>
                        <LinearGradientBrush EndPoint="0.429,0.214" StartPoint="0.693,1.16">
                            <GradientStop Color="{DynamicResource LightBlue}" Offset="0"/>
                            <GradientStop Offset="0.297" Color="#FF1B232B"/>
                        </LinearGradientBrush>
                    </Border.Background>
                    <Border.BorderBrush>
                        <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                    </Border.BorderBrush>
                    <Grid>
                        <Image Source="logo.png" Stretch="Fill" Height="50" VerticalAlignment="Top" HorizontalAlignment="Left" Width="50" d:LayoutOverrides="HorizontalAlignment" Margin="6.667,6.667,0,0"/>
                        <TextBlock Margin="70.665,36,11.668,0" TextWrapping="Wrap" Foreground="White" FontSize="21.333" TextAlignment="Right"><Run Text="试"/><Run Language="zh-cn" Text="卷管理"/><LineBreak/><Run FontSize="13.333" Language="zh-cn" Text="控制面板"/></TextBlock>
                    </Grid>
                </Border>

                <ed:Arc ArcThickness="151" ArcThicknessUnit="Pixel" EndAngle="360" Height="189.9" Margin="30.833,-100.733,412.667,0" Stretch="None" StartAngle="0" VerticalAlignment="Top">
                    <ed:Arc.Fill>
                        <RadialGradientBrush>
                            <GradientStop Color="#0C3D434B" Offset="1"/>
                            <GradientStop Color="White"/>
                        </RadialGradientBrush>
                    </ed:Arc.Fill>
                </ed:Arc>
                <TabControl x:Name="tabCtrl" Margin="0,93.167,24.897,52" TabStripPlacement="Left" d:LayoutOverrides="VerticalAlignment" OpacityMask="Black" Opacity="0.8">
                    <TabControl.Background>
                        <SolidColorBrush Color="{DynamicResource DarkBlue}"/>
                    </TabControl.Background>
                    <TabControl.BorderBrush>
                        <SolidColorBrush Color="{DynamicResource MouseOverClr}"/>
                    </TabControl.BorderBrush>
                    <TabItem Margin="0" Width="208" Height="60" Style="{DynamicResource TabItemStyle1}" Foreground="White" BorderThickness="5" Background="#E5081425" HorizontalAlignment="Left" VerticalAlignment="Top">
                        <TabItem.Header>
                            <Grid Height="47.513" Width="108" HorizontalAlignment="Left" VerticalAlignment="Top">
                                <TextBlock  RenderTransformOrigin="0.5,0.5" FontSize="24" Margin="-40,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"><Run Text="基础"/><LineBreak/><Run FontSize="12" Language="zh-cn" Text="包含必须填写的信息"/></TextBlock>
                            </Grid>
                        </TabItem.Header>
                        <TabItem.BorderBrush>
                            <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                        </TabItem.BorderBrush>
                        <Grid Margin="8,0,0,0">
                            <GroupBox x:Name="groupBox1" Header="基础" Foreground="White" Margin="0" d:LayoutOverrides="Width" BorderThickness="0.5">
                                <GroupBox.BorderBrush>
                                    <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                </GroupBox.BorderBrush>
                                <StackPanel Margin="0">
                                    <Border x:Name="border1_Copy" Margin="1.5,0,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width" GotFocus="Grid_GotFocus" LostFocus="Grid_LostFocus" Height="40">
                                            <TextBlock x:Name="BodyTxtBlk1" TextWrapping="Wrap" Text="测试时间" Width="54.996" FontSize="13.333" Height="16.334" VerticalAlignment="Center" Margin="8.004,8,0,0" HorizontalAlignment="Left"/>
                                            <local:AdvancedTextBox Text="{Binding TestDate,Mode=TwoWay}"  x:Name="BdyText1" Margin="67,8,28.603,8" TextWrapping="Wrap" Background="{x:Null}" BorderThickness="1" BorderBrush="#FFFF00C7" Foreground="White" Padding="1,1,66,1" ScrollViewer.CanContentScroll="True" UseLayoutRounding="True" Grid.IsSharedSizeScope="True" HorizontalScrollBarVisibility="Auto" SpellCheck.IsEnabled="True" VerticalScrollBarVisibility="Auto" Style="{DynamicResource TextBoxStyle}" />
                                        </Grid>
                                    </Border>
                                    <Border x:Name="border1" Margin="1.5,0,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width" GotFocus="Grid_GotFocus" LostFocus="Grid_LostFocus" Height="40">
                                            <TextBlock x:Name="BodyTxtBlk5" TextWrapping="Wrap" Text="描述" Width="33" FontSize="13.333" Height="16.334" VerticalAlignment="Center" Margin="8.004,8,0,0" HorizontalAlignment="Left"/>
                                            <local:AdvancedTextBox Text="{Binding Introduction,Mode=TwoWay}" x:Name="BdyText" Margin="67,8,28.603,8" TextWrapping="Wrap" Background="{x:Null}" BorderThickness="1" BorderBrush="#FFFF00C7" Foreground="White" Padding="1,1,66,1" ScrollViewer.CanContentScroll="True" UseLayoutRounding="True" Grid.IsSharedSizeScope="True" HorizontalScrollBarVisibility="Auto" SpellCheck.IsEnabled="True" VerticalScrollBarVisibility="Auto" Style="{DynamicResource TextBoxStyle}" />
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width" Height="40">
                                            <TextBlock x:Name="BodyTxtBlk6" TextWrapping="Wrap" Width="54.996" FontSize="13.333" Margin="8.004,11.833,0,11.833" HorizontalAlignment="Left"><Run Language="zh-cn" Text="难度值"/></TextBlock>
                                            <TextBlock Text="{Binding Difficulty,Mode=TwoWay}" x:Name="Difficulty" Margin="67,8,28,8" TextWrapping="Wrap" Background="{x:Null}"   Foreground="White" Padding="1,1,66,1" UseLayoutRounding="True" Grid.IsSharedSizeScope="True"  d:LayoutOverrides="Width" />
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width" Height="40">
                                            <TextBlock x:Name="BodyTxtBlk2" TextWrapping="Wrap" Width="113.996" FontSize="13.333" Margin="8.004,11.833,0,11.833" HorizontalAlignment="Left" Text="最后一次修改时间"/>
                                            <TextBlock Text="{Binding LastModifyDate,Mode=TwoWay}" x:Name="BdyText2" Margin="126,8,27.603,8" TextWrapping="Wrap" Background="{x:Null}"   Foreground="White" Padding="1,1,66,1" ScrollViewer.CanContentScroll="True" UseLayoutRounding="True" Grid.IsSharedSizeScope="True"/>
                                        </Grid>
                                    </Border>
                                    <Border x:Name="questionBorder" Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Height="40" >
                                            <TextBlock x:Name="BodyTxtBlk7" TextWrapping="Wrap" Width="60" FontSize="13.333" HorizontalAlignment="Left" Margin="8,8,0,0" Height="29.334" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment"><Run Language="zh-cn" Text="试题"/></TextBlock>
                                            <Grid x:Name="QuestionCtrlGrid" Margin="92.897,38.328,94,0" Height="22" VerticalAlignment="Top">
                                                <Button Content="增加" x:Name="QuestionList_Add" Click="QuestionList_Add_Click" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Left" Width="71" Height="22" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                                                <Button Content="移除" x:Name="QuestionList_Remove" Click="QuestionList_Remove_Click" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Height="22" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                                            </Grid>
                                            <ListBox ItemsSource="{Binding Questions,Mode=TwoWay}" x:Name="QuestionList" Margin="8,74.328,8.103,20.666"  Foreground="White" d:LayoutOverrides="VerticalAlignment" ItemTemplate="{DynamicResource ListTemplate}" BorderThickness="0.5" >
                                                <ListBox.BorderBrush>
                                                    <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                                </ListBox.BorderBrush>
                                                <ListBox.Background>
                                                    <SolidColorBrush Color="{DynamicResource DarkBlue}"/>
                                                </ListBox.Background>
                                            </ListBox>
                                            <Button Click="Button_Click" Content="展开" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Height="22" VerticalAlignment="Top" Margin="0,6.328,8.103,0"/>
                                        </Grid>
                                    </Border>
                                    <Border x:Name="StatisticsGrid" Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3"  Height="Auto">
                                        <Grid Height="40" >
                                            <Button Click="Button_Click" Content="展开" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Height="22" VerticalAlignment="Top" Margin="0,8,8,0" />
                                            <Grid x:Name="StatisticCtrlControlGrid" Margin="8,6.328,8.103,2.666" IsHitTestVisible="False">
                                                <TextBlock x:Name="BodyTxtBlk4" TextWrapping="Wrap" Width="60" FontSize="13.333" HorizontalAlignment="Left" Margin="0,1.672,0,0" Height="29.334" VerticalAlignment="Top"><Run Language="zh-cn" Text="统计"/></TextBlock>
                                                <StackPanel x:Name="Statistics" Margin="0,31.006,0,0">
                                                    <StackPanel Margin="15,10,15,15" Orientation="Horizontal">
                                                        <TextBlock x:Name="___No_Name_" Height="14" TextWrapping="Wrap" Text="选择题数目" Width="104"/>
                                                        <TextBox x:Name="MultipleChoicesCount" TextWrapping="Wrap" Style="{DynamicResource TextBoxStyle}" Background="{x:Null}" Foreground="White" BorderThickness="1" Margin="12,0,-89,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="465"/>
                                                    </StackPanel>
                                                    <StackPanel Margin="15,10,15,15" Orientation="Horizontal">
                                                        <TextBlock Height="14" TextWrapping="Wrap" Width="104"><Run Language="zh-cn" Text="填空题数目"/></TextBlock>
                                                        <TextBox x:Name="BlankFillingCount" TextWrapping="Wrap" Style="{DynamicResource TextBoxStyle}" Background="{x:Null}" Foreground="White" BorderThickness="1" Margin="12,0,-89,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="465"/>
                                                    </StackPanel>
                                                    <StackPanel Margin="15,10,15,15" Orientation="Horizontal">
                                                        <TextBlock Height="14" TextWrapping="Wrap" Width="104"><Run Language="zh-cn" Text="判断题"/><Run Text="数目"/></TextBlock>
                                                        <TextBox x:Name="TrueOrFalseCount" TextWrapping="Wrap" Style="{DynamicResource TextBoxStyle}" Background="{x:Null}" Foreground="White" BorderThickness="1" Margin="12,0,-89,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="465"/>
                                                    </StackPanel>
                                                    <StackPanel Margin="15,10,15,15" Orientation="Horizontal">
                                                        <TextBlock Height="14" TextWrapping="Wrap" Width="104"><Run Language="zh-cn" Text="其他题数目"/></TextBlock>
                                                        <TextBox x:Name="OthersCount" TextWrapping="Wrap" Style="{DynamicResource TextBoxStyle}" Background="{x:Null}" Foreground="White" BorderThickness="1" Margin="12,0,-89,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="465"/>
                                                    </StackPanel>
                                                </StackPanel>
                                            </Grid>
                                        </Grid>
                                    </Border>
                                    <Border x:Name="knowledgeBorder" Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3" >
                                        <Grid Height="40" >
                                            <TextBlock x:Name="BodyTxtBlk3" TextWrapping="Wrap" Width="60" FontSize="13.333" HorizontalAlignment="Left" Margin="8,8,0,0" Height="29.334" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" Text="知识点"/>
                                            <Grid x:Name="KnowledgePointCtrlGrid" Margin="8,49.328,8,20" IsHitTestVisible="True">
                                                <ListBox ItemsSource="{Binding KnowledgePoints,Mode=TwoWay}" x:Name="KnowledgePointsList" Margin="0,25,0,0"  Foreground="White" d:LayoutOverrides="VerticalAlignment" ItemTemplate="{DynamicResource ListTemplate}" BorderThickness="0.5" >
                                                    <ListBox.BorderBrush>
                                                        <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                                    </ListBox.BorderBrush>
                                                    <ListBox.Background>
                                                        <SolidColorBrush Color="{DynamicResource DarkBlue}"/>
                                                    </ListBox.Background>
                                                </ListBox>
                                                <Button Content="增加" x:Name="KnowledgePoint_Add" Click="KnowledgePoint_Add_Click" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Left" Width="71" Height="22" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment, Height" Margin="84.897,0,0,0"/>
                                                <Button Content="移除" x:Name="KnowledgePoint_Remove" Click="KnowledgePoint_Remove_Click"  Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Height="22" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment, Height" Margin="0,0,86,0"/>
                                            </Grid>
                                            <Button Click="Button_Click" Content="展开" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Height="22" VerticalAlignment="Top" Margin="0,6.328,8.103,0" />
                                        </Grid>
                                    </Border>
                                </StackPanel>
                            </GroupBox>
                        </Grid>
                    </TabItem>
                    <TabItem Margin="0" Width="208" Height="60" Style="{DynamicResource TabItemStyle1}" Foreground="White" BorderThickness="5" Background="#E5081425" HorizontalAlignment="Left" VerticalAlignment="Top">
                        <TabItem.Header>
                            <Grid Height="47.513" Width="108" HorizontalAlignment="Left" VerticalAlignment="Top">
                                <TextBlock  RenderTransformOrigin="0.5,0.5" FontSize="24" Margin="-40,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"><Run Language="zh-cn" Text="细节"/><LineBreak/><Run FontSize="12" Language="zh-cn" Text="包含选择填写的细节信息"/></TextBlock>
                            </Grid>
                        </TabItem.Header>
                        <TabItem.BorderBrush>
                            <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                        </TabItem.BorderBrush>
                        <Grid Margin="8,0,0,0">
                            <GroupBox x:Name="groupBox2" Header="细节 - 不会保存的内容" Foreground="White" Margin="0" d:LayoutOverrides="Width" BorderThickness="0.5">
                                <GroupBox.BorderBrush>
                                    <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                </GroupBox.BorderBrush>
                                <StackPanel Margin="0">
                                    <Border x:Name="border1_Copy1" Margin="1.5,0,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width" >
                                            <TextBlock x:Name="BodyTxtBlk8" TextWrapping="Wrap" Text="纸张大小" Width="54.996" FontSize="13.333" Height="16.334" VerticalAlignment="Center" Margin="8.004,8,0,0" HorizontalAlignment="Left"/>
                                            <ComboBox x:Name="paperSizeChooser" HorizontalAlignment="Left" Margin="67.667,8.667,0,11.133" Width="81" SelectedIndex="0">
                                                <ComboBox.Items>
                                                    <system:String>A3</system:String>
                                                    <system:String>A4</system:String>
                                                </ComboBox.Items>
                                            </ComboBox>
                                        </Grid>
                                    </Border>
                                    <Border x:Name="border2" Margin="1.5,0,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width">
                                            <TextBlock x:Name="BodyTxtBlk9" TextWrapping="Wrap" Text="方向" Width="33" FontSize="13.333" Height="16.334" VerticalAlignment="Center" Margin="8.004,8,0,0" HorizontalAlignment="Left"/>
                                            <ComboBox x:Name="orientationChooser" SelectedIndex="0" Margin="68.132,9,482.47,8" Width="81">
                                                <ComboBox.Items>
                                                    <system:String>景色</system:String>
                                                    <system:String>肖像</system:String>
                                                </ComboBox.Items>
                                            </ComboBox>
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Height" Height="40"  GotFocus="Grid_GotFocus" LostFocus="Grid_LostFocus" >
                                            <TextBlock x:Name="BodyTxtBlk10" TextWrapping="Wrap" Width="54.996" FontSize="13.333" Margin="8.004,11.833,0,11.833" HorizontalAlignment="Left"><Run Language="zh-cn" Text="页眉"/></TextBlock>
                                            <TextBox Style="{DynamicResource TextBoxStyle}" x:Name="header" Margin="67,8,28,8" TextWrapping="Wrap" Background="{x:Null}"   Foreground="White" Padding="1,1,66,1" UseLayoutRounding="True" Grid.IsSharedSizeScope="True"  d:LayoutOverrides="Width" BorderThickness="0.5"  />
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Height"  GotFocus="Grid_GotFocus" LostFocus="Grid_LostFocus" Height="40">
                                            <TextBlock x:Name="BodyTxtBlk11" TextWrapping="Wrap" Width="55" FontSize="13.333" Margin="8.004,11.833,0,11.833" HorizontalAlignment="Left" Text="页脚"/>
                                            <TextBox Style="{DynamicResource TextBoxStyle}" IsEnabled="{Binding IsChecked,ElementName=enableAutoFootNote}"  x:Name="BdyText5" Margin="67,8,93.603,8" TextWrapping="Wrap" Background="{x:Null}"   Foreground="White" Padding="1,1,66,1" ScrollViewer.CanContentScroll="True" UseLayoutRounding="True" Grid.IsSharedSizeScope="True" BorderThickness="0.5" />
                                            <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Height="20" Width="67"></Grid>
                                            <CheckBox x:Name="enableAutoFootNote"  Content="使用页号" IsChecked="True" Margin="542,13,1,7" Background="{x:Null}" Foreground="White" />
                                        </Grid>
                                    </Border>
                                </StackPanel>
                            </GroupBox>
                        </Grid>
                    </TabItem>
                    <TabItem Margin="0" Width="208" Height="60" Style="{DynamicResource TabItemStyle1}" Foreground="White" BorderThickness="5" Background="#E5081425" HorizontalAlignment="Left" VerticalAlignment="Top">
                        <TabItem.Header>
                            <Grid Height="47.513" Width="112" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="13,0,0,0">
                                <TextBlock RenderTransformOrigin="0.5,0.5" FontSize="24" HorizontalAlignment="Left" VerticalAlignment="Top" Width="98.667" Margin="-44,0,0,0" d:LayoutOverrides="HorizontalAlignment"><Run Language="zh-cn" Text="选项"/><LineBreak/><Run FontSize="12" Language="zh-cn" Text="显示喜好和设置"/></TextBlock>
                            </Grid>
                        </TabItem.Header>
                        <TabItem.BorderBrush>
                            <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                        </TabItem.BorderBrush>
                        <Grid Margin="8,0,0,0"/>
                    </TabItem>
                    <TabItem Name="new" Margin="0" Width="208" Height="60" Style="{DynamicResource TabItemStyle1}" Foreground="White" BorderThickness="5" Background="#E5081425" HorizontalAlignment="Left" VerticalAlignment="Top">
                        <TabItem.Header>
                            <Grid Height="47.513" Width="112" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="13,0,0,0">
                                <TextBlock RenderTransformOrigin="0.5,0.5" FontSize="24" HorizontalAlignment="Left" VerticalAlignment="Top" Width="148" Margin="-44,0,0,0"><Run Language="zh-cn" Text="管理"/><LineBreak/><Run FontSize="12" Language="zh-cn" Text="保存和打开组卷文件"/></TextBlock>
                            </Grid>
                        </TabItem.Header>
                        <TabItem.BorderBrush>
                            <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                        </TabItem.BorderBrush>
                        <Grid Margin="8,0,0,0">
                            <GroupBox Header="管理" Foreground="White" Margin="0" BorderThickness="0.5" d:LayoutOverrides="Width">
                                <GroupBox.BorderBrush>
                                    <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                </GroupBox.BorderBrush>
                                <StackPanel Margin="0">
                                    <Button x:Name="btnSave"  Content="保存" HorizontalAlignment="Left" Height="32" Width="116" Template="{DynamicResource ButtonControlTemplate1}" Foreground="White" Margin="0,10,0,0" Click="btnSave_Click"/>
                                    <Button x:Name="btnOpen"  Content="打开" HorizontalAlignment="Left" Height="32" Width="116" Template="{DynamicResource ButtonControlTemplate1}" Foreground="White" Margin="0,20,0,0" Click="btnOpen_Click"/>
                                    <Label Content="最近使用的文件..." BorderThickness="0,1,0,0" Margin="0,32,0,0" Foreground="#FFE7E6E6"/>
                                    <StackPanel Name="spnlMPDHistory" Height="360" HorizontalAlignment="Left" Width="301.603" Margin="0,14,0,0">
                                        <ListBox x:Name="lbxMPDHistory" Height="350.5" Background="{x:Null}" Foreground="#FFFBFBFB" MouseDoubleClick="lbxMPDHistory_MouseDoubleClick" >
                                        	<ListBox.BorderBrush>
                                        		<LinearGradientBrush EndPoint="0.832,0.91" StartPoint="0.168,0.09">
                                        			<GradientStop Color="#FF4F5A68" Offset="0.164"/>
                                        			<GradientStop Color="#FF0A1728" Offset="1"/>
                                        		</LinearGradientBrush>
                                        	</ListBox.BorderBrush>
                                        </ListBox>
                                    </StackPanel>
                                </StackPanel>
                            </GroupBox>
                        </Grid>
                    </TabItem>
                </TabControl>
                <Button x:Name="Comfirm" Click="Comfirm_Click" Content="确定" HorizontalAlignment="Right" Height="32" Margin="0,0,140.897,7" VerticalAlignment="Bottom" Width="116" Template="{DynamicResource ButtonControlTemplate1}" Foreground="White" BorderThickness="0"/>
                <Button x:Name="Cancel" Click="Cancel_Click" Content="取消" HorizontalAlignment="Right" Height="32" Margin="0,0,24.897,7" VerticalAlignment="Bottom" Width="116" Template="{DynamicResource ButtonControlTemplate1}" Foreground="White"/>
                <Border BorderThickness="1" CornerRadius="0,0,0,10" Opacity="0.9" Background="#FF0A1525" Height="52.334" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="213">
                    <Border.BorderBrush>
                        <SolidColorBrush Color="{DynamicResource MouseOverClr}"/>
                    </Border.BorderBrush>
                </Border>
                <Border HorizontalAlignment="Left" Margin="0,339,0,52" Width="212.667">
                    <Border.BorderBrush>
                        <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                    </Border.BorderBrush>
                    <TextBlock TextWrapping="Wrap" FontSize="18.667" Foreground="White"><TextBlock.Background>
        						<SolidColorBrush Color="{DynamicResource DarkBlueApp}"/>
        					</TextBlock.Background></TextBlock>
                </Border>
                <Border HorizontalAlignment="Left" Height="257" Margin="0,0,0,52" VerticalAlignment="Bottom" Width="212.667">
                    <Border.BorderBrush>
                        <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                    </Border.BorderBrush>
                    <ListBox ItemTemplate="{DynamicResource CheckListTemplate}"  MouseDoubleClick="CheckList_MouseDoubleClick"  Margin="0,8"  BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="White" x:Name="CheckList" OpacityMask="Black" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}">

                    </ListBox>
                </Border>
                <Button Click="GenerateDocView" x:Name="preview" Content="生成预览" HorizontalAlignment="Right" Height="32" Margin="0,0,256.897,7" VerticalAlignment="Bottom" Width="116" Template="{DynamicResource ButtonControlTemplate1}" Foreground="White" BorderThickness="0"/>
                <CheckBox Click="Automatic_Checked" x:Name="Automatic" Content="自动" Height="19" Margin="0,0,376.897,11.98" VerticalAlignment="Bottom" Background="{x:Null}" Foreground="White" HorizontalAlignment="Right" Width="46.333"/>
            </Grid>
            <ToggleButton Click="OnSiteHelp_Click" x:Name="OnSiteIndicator" Width="210.205" HorizontalAlignment="Left" Margin="0,340.002,0,0" BorderBrush="{x:Null}" Foreground="White" BorderThickness="0"  Background="{x:Null}" Style="{DynamicResource ToggleButtonStyle1}" Opacity="0.9" Height="58" VerticalAlignment="Top">
                <Grid Height="47.513" Width="98.666">
                    <TextBlock RenderTransformOrigin="0.5,0.5" FontSize="24" HorizontalAlignment="Left" VerticalAlignment="Top" Width="98.666"><Run Language="zh-cn" Text="帮助"/><LineBreak/></TextBlock>
                    <TextBlock x:Name="HelpIndicator" FontSize="12" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" VerticalAlignment="Top" Width="98.666" Height="18.179" Margin="0,29.333,0,0"><Run Language="zh-cn" Text="已关闭OnSite帮助"/></TextBlock>
                </Grid>
            </ToggleButton>
            <Grid x:Name="Visual_Effects" Margin="5" Visibility="Collapsed">
                <Rectangle x:Name="darkener" Fill="#FD000000" Margin="0"/>
                <TextBlock x:Name="progressing" Margin="311.5,240.5,312.5,215.5" TextWrapping="Wrap" RenderTransformOrigin="0.5,0.5" Foreground="White" FontSize="32"><TextBlock.RenderTransform>
        					<TransformGroup>
        						<ScaleTransform/>
        						<SkewTransform/>
        						<RotateTransform/>
        						<TranslateTransform/>
        					</TransformGroup>
        				</TextBlock.RenderTransform><Run Language="zh-cn" Text="Progressing..."/></TextBlock>
                <ProgressBar Margin="148,305,115,318" Style="{DynamicResource PerformanceProgressBar}" Background="{x:Null}" BorderBrush="{x:Null}" IsIndeterminate="True">
                    <ProgressBar.Foreground>
                        <SolidColorBrush Color="{DynamicResource MouseOverClr}"/>
                    </ProgressBar.Foreground>
                </ProgressBar>
            </Grid>
        </Grid>
    </Border>
</Window>